<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../../style.css" type="text/css" media="screen">
<link rel="stylesheet" href="../../../print.css" type="text/css" media="print">
<meta content="LoadedItem,com.ourbrander.loader.LoadedItem,alias,autoRemove,content,data,fileName,id,loadTip,method,path,type,dispose" name="keywords">
<title>com.ourbrander.loader.LoadedItem</title>
</head>
<body>
<script type="text/javascript" language="javascript" src="../../../asdoc.js"></script><script type="text/javascript" language="javascript" src="../../../cookies.js"></script><script type="text/javascript" language="javascript">
<!--
				asdocTitle = 'LoadedItem - API Documentation';
				var baseRef = '../../../';
				window.onload = configPage;
			--></script>
<table style="display:none" id="titleTable" cellspacing="0" cellpadding="0" class="titleTable">
<tr>
<td align="left" class="titleTableTitle">EasyLoader</td><td align="right" class="titleTableTopNav"><a onclick="loadClassListFrame('../../../all-classes.html')" href="../../../package-summary.html">All&nbsp;Packages</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../all-classes.html')" href="../../../class-summary.html">All&nbsp;Classes</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../index-list.html')" href="../../../all-index-A.html">Index</a>&nbsp;|&nbsp;<a href="../../../index.html?com/ourbrander/loader/LoadedItem.html&amp;com/ourbrander/loader/class-list.html" id="framesLink1">Frames</a><a onclick="parent.location=document.location" href="" style="display:none" id="noFramesLink1">No&nbsp;Frames</a></td><td rowspan="3" align="right" class="titleTableLogo"><img alt="Adobe Logo" title="Adobe Logo" class="logoImage" src="../../../images/logo.jpg"></td>
</tr>
<tr class="titleTableRow2">
<td align="left" id="subTitle" class="titleTableSubTitle">Class&nbsp;LoadedItem</td><td align="right" id="subNav" class="titleTableSubNav"><a href="#propertySummary">Properties</a>&nbsp;| <a href="#methodSummary">Methods</a></td>
</tr>
<tr class="titleTableRow3">
<td colspan="2">&nbsp;</td>
</tr>
</table>
<script type="text/javascript" language="javascript">
<!--
if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("Class LoadedItem"); titleBar_setSubNav(false,true,false,false,false,false,true,false,false,false,false,false,false,false);}
--></script>
<div class="MainContent">
<table cellspacing="0" cellpadding="0" class="classHeaderTable">
<tr>
<td class="classHeaderTableLabel">Package</td><td><a onclick="javascript:loadClassListFrame('class-list.html')" href="package-detail.html">com.ourbrander.loader</a></td>
</tr>
<tr>
<td class="classHeaderTableLabel">Class</td><td class="classSignature">public dynamic  class LoadedItem</td>
</tr>
</table>
<p></p>

  每一个文件被加载进来后就会生成一个LoadedItem对象，用来存储被加载文件的各种数据。当文件加载进来完成后，里面的一些属性都没有修改的必要，仅仅是表示了这个文件加载进来的方式和类型等，修改了也不会影响到文件的使用。因为文件已经通过先前的设置方式加载过了。
  <p></p>
<br>
<hr>
</div>
<a name="propertySummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Properties</div>
<table id="summaryTableProperty" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Property</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#alias">alias</a> : String<div class="summaryTableDescription">被加载文件的别名，可以在XML配置文件中指定，也可以在ActionScript添加加载文件的时候指定。可以在获取或移除或摧毁对象时使用。</div>
</td><td class="summaryTableOwnerCol">LoadedItem</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#autoRemove">autoRemove</a> : Boolean<div class="summaryTableDescription">被加载文件是否被允许加载完成后自动删除的属性，请在文件未被加载完成前在easyLoader实例中指定</div>
</td><td class="summaryTableOwnerCol">LoadedItem</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#content">content</a> : *<div class="summaryTableDescription">存放加载的文件的属性，任何类型的文件都可以简单的如下例方式获取：_assetsManager.getFileByName("user.txt").content</div>
</td><td class="summaryTableOwnerCol">LoadedItem</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#data">data</a> : Object<div class="summaryTableDescription">一个Object对象，可以存储任何类型的信息。</div>
</td><td class="summaryTableOwnerCol">LoadedItem</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#fileName">fileName</a> : String<div class="summaryTableDescription">加载的文件的名字，自动从加载文件的路径中获取。所以可以有路径不同，但文件名一样的文件存在。</div>
</td><td class="summaryTableOwnerCol">LoadedItem</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td>
<td class="summaryTableSignatureCol"><a class="signatureLink" href="#id">id</a> : uint 
  <div class="summaryTableDescription">加载的文件在整个加载清单中的索引。</div>
</td><td class="summaryTableOwnerCol">LoadedItem</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td>
<td class="summaryTableSignatureCol"><a class="signatureLink" href="#loadTip">loadTip</a> : String 
  <div class="summaryTableDescription">被加载文件的备注信息。</div>
</td><td class="summaryTableOwnerCol">LoadedItem</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td>
<td class="summaryTableSignatureCol"><a class="signatureLink" href="#method">method</a> : String 
  <div class="summaryTableDescription">被加载文件是用何种方式加载进来的。</div>
</td><td class="summaryTableOwnerCol">LoadedItem</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td>
<td class="summaryTableSignatureCol"><a class="signatureLink" href="#path">path</a> : String 
  <div class="summaryTableDescription">被加载文件的原始路径。</div>
</td><td class="summaryTableOwnerCol">LoadedItem</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td>
<td class="summaryTableSignatureCol"><a class="signatureLink" href="#type">type</a> : String 
  <div class="summaryTableDescription">被加载文件的文件类型。</div>
</td><td class="summaryTableOwnerCol">LoadedItem</td>
</tr>
</table>
</div>
<a name="methodSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Methods</div>
<table id="summaryTableMethod" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#LoadedItem()">LoadedItem</a>($content:* = null, $filename:String = "", $id:uint = 0, $path:String = "", $alias:String = "", $type:String = "", $loadTip:String = "", $autoRemove:Boolean = false, $method:String = "text")</div>
<div class="summaryTableDescription">构造函数，在这里可以指定loadedItem对象的各种属性。</div>
</td><td class="summaryTableOwnerCol">LoadedItem</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#dispose()">dispose</a>():void</div>
<div class="summaryTableDescription">摧毁自身类内部的各种对象和事件侦听，清除不必要的内存占用。</div>
</td><td class="summaryTableOwnerCol">LoadedItem</td>
</tr>
</table>
</div>
<script type="text/javascript" language="javascript">
<!--
showHideInherited();
--></script>
<div class="MainContent">
<a name="propertyDetail"></a>
<div class="detailSectionHeader">Property detail</div>
<a name="alias"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">alias</td><td class="detailHeaderType">property</td>
</tr>
</table>
<div class="detailBody">
<code>alias:String</code>&nbsp;&nbsp;[read-write]<span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get alias():String</code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set alias(value:String):void</code>
<span class="summaryTableDescription">被加载文件的别名，可以在XML配置文件中指定，也可以在ActionScript添加加载文件的时候指定。可以在获取或移除或摧毁对象时使用。</span>没有必要的时候请不要设置修改这个值，虽然设置为可写。<br>
</div>
<a name="autoRemove"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">autoRemove</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>autoRemove:Boolean</code>&nbsp;&nbsp;[read-write]<span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get autoRemove():Boolean</code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set autoRemove(value:Boolean):void</code>
<span class="summaryTableDescription">被加载文件是否被允许加载完成后自动删除的属性，请在文件未被加载完成前在easyLoader实例中指定</span>,没有必要的时候请不要设置修改这个值，虽然设置为可写。<br>
</div>
<a name="content"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">content</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>content:*</code>&nbsp;&nbsp;[read-write]<span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get content():*</code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set content(value:*):void</code>
<span class="summaryTableDescription">存放加载的文件的属性，任何类型的文件都可以简单的如下例方式获取：_assetsManager.getFileByName("user.txt").content</span><br>
</div>
<a name="data"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">data</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>data:Object</code>&nbsp;&nbsp;[read-write]<span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get data():Object</code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set data(value:Object):void</code>
<span class="summaryTableDescription">一个Object对象，可以存储任何类型的信息。</span><br>
</div>
<a name="fileName"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">fileName</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>fileName:String</code>&nbsp;&nbsp;[read-write]<span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get fileName():String</code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set fileName(value:String):void</code>
<span class="summaryTableDescription">加载的文件的名字，自动从加载文件的路径中获取。所以可以有路径不同，但文件名一样的文件存在。</span>没有必要的时候请不要设置修改这个值，虽然设置为可写。<br>
</div>
<a name="id"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">id</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>id:uint</code>&nbsp;&nbsp;[read-write]<span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get id():uint</code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set id(value:uint):void</code>
<span class="summaryTableDescription">加载的文件在整个加载清单中的索引。</span>没有必要的时候请不要设置修改这个值，虽然设置为可写。<br>
</div>
<a name="loadTip"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">loadTip</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>loadTip:String</code>&nbsp;&nbsp;[read-write]<span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get loadTip():String</code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set loadTip(value:String):void</code>
<span class="summaryTableDescription">被加载文件的备注信息。</span><br>
</div>
<a name="method"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">method</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>method:String</code>&nbsp;&nbsp;[read-write]<span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get method():String</code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set method(value:String):void</code>
<span class="summaryTableDescription">被加载文件是用何种方式加载进来的。</span>没有必要的时候请不要设置修改这个值，虽然设置为可写。<br>
</div>
<a name="path"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">path</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>path:String</code>&nbsp;&nbsp;[read-write]<span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get path():String</code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set path(value:String):void</code>
<span class="summaryTableDescription">被加载文件的原始路径。</span>没有必要的时候请不要设置修改这个值，虽然设置为可写。<br>
</div>
<a name="type"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">type</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>type:String</code>&nbsp;&nbsp;[read-write]<span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get type():String</code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set type(value:String):void</code>
<span class="summaryTableDescription">被加载文件的文件类型。</span>没有必要的时候请不要设置修改这个值，虽然设置为可写。<br>
</div>
<a name="constructorDetail"></a>
<div class="detailSectionHeader">Constructor detail</div>
<a name="LoadedItem()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">LoadedItem</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">constructor</td>
</tr>
</table>
<div class="detailBody">
<code>public function LoadedItem($content:* = null, $filename:String = "", $id:uint = 0, $path:String = "", $alias:String = "", $type:String = "", $loadTip:String = "", $autoRemove:Boolean = false, $method:String = "text")</code><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">$content</span>:*</code> (default = <code>null</code>)<code></code></td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">$filename</span>:String</code> (default = "<code></code>")<code></code></td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">$id</span>:uint</code> (default = <code>0</code>)<code></code></td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">$path</span>:String</code> (default = "<code></code>")<code></code></td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">$alias</span>:String</code> (default = "<code></code>")<code></code></td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">$type</span>:String</code> (default = "<code></code>")<code></code></td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">$loadTip</span>:String</code> (default = "<code></code>")<code></code></td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">$autoRemove</span>:Boolean</code> (default = <code>false</code>)<code></code></td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">$method</span>:String</code> (default = "<code>text</code>")<code></code></td>
</tr>
</table>
<span class="summaryTableDescription">构造函数，在这里可以指定loadedItem对象的各种属性。</span> </div>
<a name="methodDetail"></a>
<div class="detailSectionHeader">Method detail</div>
<a name="dispose()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">dispose</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td>
</tr>
</table>
<div class="detailBody">
<code>public function dispose():void</code>
<span class="summaryTableDescription">摧毁自身类内部的各种对象和事件侦听，清除不必要的内存占用。</span></div>
<br>
<br>
<hr>
<br>
<p></p>
<center class="copyright"> 
</center>
</div>
</body>
</html>
<!-- -->
